/**
 * Show or hide object
 */
function showHide(id){
	var object = document.getElementById(id);
	if (object != null) {
		if(object.style.display == 'none') {
			object.style.display = 'block';	
		}
		else {
			object.style.display = 'none';	
		}
	}
}


function ajaxCall(param, url, callback) {
	var xmlhttp = null;
	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp = new XMLHttpRequest();
	}
	else {// code for IE6, IE5
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4) {
			callback(xmlhttp.status, xmlhttp.responseText, xmlhttp.responseXML);
		}
	};
	xmlhttp.open("POST",url,true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send(param);
};